package com.rgp.servicedriveruser.controller;

import com.rgp.internalcommon.dto.ResponseResult;
import com.rgp.servicedriveruser.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-16 3:11
 */
@RestController
public class TestController {

    @Autowired
    private DriverUserService driverUserService;

    @GetMapping("/test/{id}")
    public ResponseResult testMybatisPlus(@PathVariable("id") Long id){
        return driverUserService.selectByDriverUserId(id);
    }

    @GetMapping("/test")
    public ResponseResult test(){
        return ResponseResult.success();
    }
}